#include <stdio.h>
#include <conio.h>
#include <stdbool.h>

void Switch(int a);

int main(void) {
	
	int number ;
	int once , two , third ;
	bool wrong ;
	char ans ;
	
	startover :
		
	printf("enter a number (not contained zero) :\n");
	scanf("%d", &number);
	
	once = number / 100 ;
	two = (number % 100) / 10 ;
	third = number % 10 ;
	
	Switch(once);
	Switch(two);
	Switch(third);
		
		printf("\nwould you like to startover ? Y/N\n");
		scanf(" %c", &ans);
		if(ans == 'y' || ans == 'y')
			goto startover ;
		
		getchar();
		return 0;
		
	
}

void Switch(int a) {
	
	
	switch ( a ) {
			case 1 :
				printf("one  ");
				break;
			case 2 :
				printf("two  ");
				break;
			case 3 :
				printf("three  ");
				break;
			case 4 :
				printf("four  ");
				break;
			case 5 :
				printf("five ");
				break;
			case 6 :
				printf("six  ");
				break;
			case 7 :
				printf("seven  ");
				break;
			case 8 :
				printf("eight  ");
				break;
			case 9 :
				printf("nine  ");
				break;
		}
		
	
}
